package com.tigerlee.candle.ui;

import java.util.ArrayList;

import android.graphics.drawable.Drawable;

import com.google.android.maps.MapView;

public class MapItemizedOverlay extends CustomFrameItemizedOverlay<CustomOverlayItem>{

        private ArrayList<CustomOverlayItem> mOverlays = new ArrayList<CustomOverlayItem>();

        
        public MapItemizedOverlay(Drawable defaultMarker, MapView mapView) {
                super(boundCenterBottom(defaultMarker), mapView);
                // TODO Auto-generated constructor stub
        }

        @Override
        protected CustomOverlayItem  createItem(int i) {
                // TODO Auto-generated method stub
                return mOverlays.get(i); 
        }

        @Override
        public int size() {
                // TODO Auto-generated method stub
                return mOverlays.size();
        }
        public void addOverlay(CustomOverlayItem overlay) { 
             mOverlays.add(overlay); 
             populate(); 
        }

}